function GetLen(s){
	var len = 0;
    for (var i = 0; i < s.length; i++) {
    	chrCode = s.charCodeAt(i);
        if (parseInt(chrCode) > 255) {
        	len = len + 2;
        } else {
            len = len + 1;
        }
    }
    return len;
}
//定义StringBuilder类 改善字符串连接操作性能 如果ie在新版本中的js引擎对+=操作做了优化，那么就没有必要用StringBuilder类做字符串加操作
function StringBuilder() {
    this._S = [];
}
StringBuilder.prototype.append = function(s) {
    this._S.push(s);
}
StringBuilder.prototype.appendRange = function() {
    for (var i = 0, n = arguments.length; i < n; i++) {
        this._S.push(arguments[i]);
    }
}
StringBuilder.prototype.toString = function() {
    return this._S.join("");
}
 